mod main1;

use std::env::args;
use std::ops::IndexMut;
use std::ptr::null;

fn main() {



    let p = Point{x: 0, y: 0};
    p.show();

    struct pp;
    let p2 = Point{x: pp, y: pp};
    p2.show();
}


trait Tta {
    type A;
    fn show(&self);
}

struct Point<T> {
    x: T,
    y: T,
}

impl<T:Tta<A=String>> Point<T> {
    fn show (&self) {
        println!("x: {}, y: {}", self.x, self.y);
    }
}